package com;

import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.TimeoutException;

/**
 * Created by nkrivko on 30.10.2014.
 */
public class Main {
    final static String example = "sortexample";
    //static int[] ints= new int [Integer.MAX_VALUE/5];
    public static void main(String[] args) throws BrokenBarrierException, InterruptedException, TimeoutException {
        //new BarrierHolder().doIt();
//        new SemaphoreHolder().doIt();
//        new CountDownLatchHolder().doit();
//        new DeadLockHolder().doDeadlock();
//        Sort sorter = new SelectionSort();
//        sorter.sort(example.toCharArray());
//        sorter = new InsertionSort();
//        sorter.sort(example.toCharArray());
//        sorter = new ShellSort();
//        sorter.sort(("shell" + example).toCharArray());

    }
}
